package com.storm.usercenter

import com.storm.auth.behavior.UserBehavior
import com.storm.auth.behavior.factory.UserEntityFactory
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest

@SpringBootTest
class KotlinApplicationTests {

	@Autowired
	lateinit var userBehavior: UserBehavior

	lateinit var userEntityFactory: UserEntityFactory

	@Test
	fun addUser() {
		userBehavior.addUser("Yuguhan", "15324001774", "19920209")
	}

    @Test
    fun getOneUser() {
        println(userEntityFactory.getUserEntityById("5f9e7894444ce1add523018a"))
    }
}
